package com.atguigu.lease.common.exception;

import lombok.Data;

@Data
public class UsernameException extends RuntimeException{
    private Integer code;

    public UsernameException(String message, Integer code) {
        super(message);
        this.code = code;
    }

    public UsernameException(String message) {
        super(message);
    }
}
